package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotUpkeepRecord;

/**
 * 电梯保养记录业务对象 iot_upkeep_record
 *
 * @author lsl
 * @date 2024-06-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotUpkeepRecord.class, reverseConvertGenerate = false)
public class IotUpkeepRecordBo extends BaseEntity {

    /**
     * 记录ID
     */
    @NotNull(message = "记录ID不能为空", groups = {EditGroup.class})
    private Long recordId;

    /**
     * 关联保养ID
     */
    @NotNull(message = "关联保养ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long upkeepId;

    /**
     * 提交人ID
     */
    @NotNull(message = "提交人ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long referUserId;

    /**
     * 审核人ID
     */
    @NotNull(message = "审核人ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long auditUserId;

    /**
     * 审核状态（1.通过，2.不通过）
     */
    @NotBlank(message = "审核状态（1.通过，2.不通过）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String auditStatus;

    /**
     * 评分
     */
    @NotBlank(message = "评分不能为空", groups = {AddGroup.class, EditGroup.class})
    private String scoreMark;

    /**
     * 审核意见
     */
    @NotBlank(message = "审核意见不能为空", groups = {AddGroup.class, EditGroup.class})
    private String auditIdea;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
